#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_dayMode_clicked()
{
    this->setStyleSheet("background-color: rgb(255,255,220)");
    ui->textEdit->setStyleSheet("background-color: #ffe ; color: #000");
    ui->dayMode->setStyleSheet("color: #000");
    ui->nightMode->setStyleSheet("color: #000");
}

void Widget::on_nightMode_clicked()
{
    this->setStyleSheet("background-color: #333");
    ui->textEdit->setStyleSheet("background-color: #333 ; color: #fff");
    ui->dayMode->setStyleSheet("color: #fff");
    ui->nightMode->setStyleSheet("color: #fff");
}
